package com.glasgowrax.hack.domain;

import java.util.Arrays;

import android.util.Log;

public class Feature {

	private String type;
	private Geometry geometry;
//	private Properties properties;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Geometry getGeometry() {
		return geometry;
	}
	public void setGeometry(Geometry geometry) {
		this.geometry = geometry;
	}
	
	@Override
	public boolean equals(Object o) {
		Feature f = (Feature) o;
		boolean b = f.getType().equals(this.type) && Arrays.equals(f.getGeometry().getCoordinates(), this.getGeometry().getCoordinates());
		Log.i("IS IT THE SAME",b+"");
		return b;
	}

}
